package oj.swing.common;

import java.util.*;
import java.io.*;


public class OJTab implements Serializable {
  private String    id;
  private String    description;
  private ArrayList fields;
  private int       position;
  private char      tabType;
  private boolean   labelLayout;
  private boolean   gridLayout;
  private String    tabName;

  public OJTab() {
    init();
  }

  public OJTab(String newId) {
    init();
    setId(newId);
  }

  private void init() {
    id = "";
    description = "";
    fields = new ArrayList();
    position = -1;
    tabType = '0';
    labelLayout = false;
  }

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public java.util.ArrayList getFields() {
    return fields;
  }

  public void setFields(java.util.ArrayList fields) {
    this.fields = fields;
  }

  public int getPosition() {
    return position;
  }

  public String getDescription() {
    return description;
  }

  public char getTabType() {
    return tabType;
  }

  public String getTabName() {
    return tabName;
  }

  public void setPosition(int position) {
    this.position = position;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public void setTabType(char tabType) {
    this.tabType = tabType;
  }

  public void setTabName(String tabName) {
    this.tabName = tabName;
  }

  public boolean isLabelLayout() {
    return labelLayout;
  }
  public void setLabelLayout(boolean labelLayout) {
    this.labelLayout = labelLayout;
  }
  public boolean isGridLayout() {
	return gridLayout;
  }
  public void setGridLayout(boolean gridLayout) {
	this.gridLayout = gridLayout;
  }
}